﻿using UnityEngine;
using System.Collections;

public class TeleportDoor : InteractiveObject {

	public Transform teleportTo;

	void Awake() {
		OnAwake();
	}

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public override ArrayList GetActions() {
		ArrayList baseActions = base.GetActions();
		Teleport teleportAction = (Teleport)this.gameObject.AddComponent(typeof(Teleport));
		teleportAction.SetDestinations(teleportTo);
		baseActions.Add(teleportAction);

		return baseActions;
	}

}
